<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@ page import="com.hzqy.commons.utils.ConstantUtils" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>浙里办修改</title>
<link rel="stylesheet" type="text/css"	href="../../static/js/themes/defalut.css">
<link rel="stylesheet" type="text/css"	href="../../static/js/themes/public.css">
<link rel="stylesheet" type="text/css"	href="../../static/js/themes/ddspstyle.css">
<link rel="stylesheet" type="text/css"	href="../../static/js/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"	href="../../static/js/themes/icon.css">
<link rel="stylesheet" type="text/css"	href="../../static/js/WdatePicker/skin/WdatePicker.css">
<link rel="stylesheet" type="text/css" href="../../static/stream/css/stream-v1.css">
<link rel="stylesheet" type="text/css" href="../../static/bootstrap-3.3.5/css/bootstrap.min.css">

<script type="text/javascript" src="../../static/js/jquery.min.js"></script>
<script type="text/javascript" src="../../static/js/jquery.easyui.min.js"></script>
<script type="text/javascript"	src="../../static/js/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="../../static/js/jquery.validate.js"></script>
<script type="text/javascript" src="../../static/stream/js/bootstrap.min.js"></script>
<script type="text/javascript" src="../../static/stream/js/stream-v1.js"></script>
<script type="text/javascript" src="../../static/js/index.js"></script>
<script type="text/javascript" src="../../static/js/WdatePicker/WdatePicker.js"></script>
<script type="text/javascript" charset="utf-8" src="../../ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="../../ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8" src="../../ueditor/lang/zh-cn/zh-cn.js"></script>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<%
	String para =request.getParameter("f_zjbs_id");
	int f_zjbs_id = 0;
	if(para != null)
		f_zjbs_id = Integer.valueOf(para);
	String []nonceObj=ConstantUtils.getNonceObject();
%>
<script type="text/javascript">
	var ids = "";
	var f_zjbs_id = <%=f_zjbs_id%>;
	var _t;
	$(function() {
		$.ajax({
			url:"../../industry/selectZjZheJiangServiceInfo.do?f_zjbs_id="+f_zjbs_id,
			success:function(data) {
				data = JSON.parse(data);
				$("#f_zjbs_id").val(data.f_zjbs_id);
				$("#f_zjbs_areaId").val(data.f_zjbs_areaId);
				$("#f_zjbs_name").val(data.f_zjbs_name);
				$("#f_zjbs_url").html(data.f_zjbs_url);
				$("#f_zjbs_address").html(data.f_zjbs_address);
				$("#f_zjbs_condition").html(data.f_zjbs_condition);
				$("#f_zjbs_process").html(data.f_zjbs_process);
				$("#f_zjbs_zxdhnr").html(data.f_zjbs_zxdhnr);
				$("#f_zjbs_remark").html(data.f_zjbs_remark);
			}
		});
	});
		$("#contentForm").validate({
			rules: {
				
			},
			messages: {
			}
		});
		
		moreItemSwitch();
		
		$('#myModal').modal('hide');
	    $('#myModal').on('hide.bs.modal', function(){
	    	$(this).find('.modal-body').html('');
	    });

	
	function _submitFm() {
		//if($("#contentForm").validate().form()) {
		app_ajax('../../industry/updateZjZheJiangService.do', $("#contentForm").serialize(), function(data) {
				if (data.success) {
					$.messager.progress('close');
					$.messager.alert('提示', '提交成功！', 'info', function() {
						parent.$('#dlg').dialog('close');
						parent.gotoSearch($('#easyui-treegrid'));
					});
				} else {
					$.messager.alert('提示', data.result, 'info', function() {
						$.messager.progress('close');
					});
				}
		});
	  //}
	}
	
	var open = true;
	function moreItemSwitch(){
		if(open){
			$(".more_attr_hide").hide();
			$("#switchItemBtn").find(".l-btn-text").text("显示更多节目");
			$("#switchItemBtn").find(".l-btn-icon.icon-remove").removeClass("icon-remove").addClass("icon-add");
		}else{
			$(".more_attr_hide").show();
			$("#switchItemBtn").find(".l-btn-text").text("隐藏更多节目");
			$("#switchItemBtn").find(".l-btn-icon.icon-add").removeClass("icon-add").addClass("icon-remove");
		}
		open = !open;
	}
	
	
</script>
</head>

<body class="overfwidth">
	<div class="barnavtop">您所在的位置：浙里办管理 &gt; 办事修改</div>
	<div id="workspace">
		<!--主体 开始-->
		<div id="container">
			<div class="editspace">
				<form id="contentForm" class="cmxform" enctype="multipart/form-data" name="formName">
					<input type="hidden" id="f_zjbs_id" name="f_zjbs_id" value="" />
					<input type="hidden" id="f_zjbs_status" name="f_zjbs_status" value="0"/>
					<input type="hidden" id="f_zjbs_areaId" name="f_zjbs_areaId" value="0"/>
					<input type="hidden" id="f_zjbs_remark" name="f_zjbs_remark" value=""/>
					<legend>办事修改</legend>
					<!-- <a id="switchItemBtn" class="easyui-linkbutton" style="position: fixed; top: 70px; right: 0; background: #D2E0F2; border: 1px solid #95B8E7;" data-options="iconCls:'icon-remove'" plain="true" href="javascript:moreItemSwitch();">隐藏更多节目</a> -->
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="20%" align="right">
										<span class="red">*</span>办事名称:
									</td>
									<td width="80%" >
									<input id="f_zjbs_name" name="f_zjbs_name" style="width: 150px;" value="" class="yl_inp yw_name" />
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									</td>
									<td width="20%" align="right">
										浙里办对应网站地址:
									</td>
									<td width="80%" colspan="3">
									<textarea rows="5" cols="100" id="f_zjbs_url" name="f_zjbs_url"></textarea>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
				
						<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="20%" align="right">
										&nbsp;地址:
									</td>
									<td width="80%" >
									<textarea rows="5" cols="100" id="f_zjbs_address" name="f_zjbs_address"></textarea>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="20%" align="right">
										受理条件:
									</td>
									<td width="80%" >
									<textarea rows="5" cols="100" id="f_zjbs_condition" name="f_zjbs_condition"></textarea>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
					<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="20%" align="right">
										<span class="red">*</span>办理流程:
									</td>
									<td width="80%" >
									<textarea rows="4" cols="100" id="f_zjbs_process" name="f_zjbs_process"></textarea>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
							<fieldset>
						<div class="fitem">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="20%" align="right">
										<span class="red">*</span>联系电话:
									</td>
									<td width="50%" >
									<textarea rows="4" cols="100" id="f_zjbs_zxdhnr" name="f_zjbs_zxdhnr"></textarea>
									</td>
								</tr>
							</table>
						</div>
					</fieldset>
						
					<input type="hidden" name="stime" value="<%=nonceObj[0]%>"/>
					<input type="hidden" name="sign" value="<%=nonceObj[1]%>"/>
					<div class="toolbar" style="text-align: center;">
						<a class="easyui-linkbutton" data-options="iconCls:'icon-ok'"
							href="javascript:void(0);" onclick="_submitFm()">保存</a> <a
							href="javascript:void(0);" data-options="iconCls:'icon-cancel'"
							class="easyui-linkbutton"
							onclick="javascript:parent.$('#dlg').dialog('close')">取消</a>
							
							<a id="tg" style="display:none;" class="easyui-linkbutton" data-options="iconCls:'icon-ok'"
							href="javascript:void(0);" onclick="_gt()">通过</a>
							<a id="btg" style="display:none;" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'"
							href="javascript:void(0);" onclick="_btg()">不通过</a>
					</div>
				</form>
			</div>
			
		</div>
		<!--主体 结束-->
	</div>
	<div id="cast_list" class="easyui-dialog"
		style="width: 600px; height: 470px; padding-top: 0px;"
		data-options="title:'模型选择', iconCls:'icon-save',modal:true,closed:true,buttons:'#dlg_buttons'">
		<iframe scrolling="auto" frameborder="0"
			style="width: 100%; height: 99%;"></iframe>
	</div>
	<div id="dlg" class="easyui-dialog"
		style="width: 800px; height: 500px; padding-top: 0px;"
		data-options="title:'企业管理', iconCls:'icon-save',modal:true,closed:true,buttons:'#dlg_buttons'">
		<iframe scrolling="auto" frameborder="0"
			style="width: 100%; height: 99%;"></iframe>
	</div>
	<div id="org_list" class="easyui-dialog"
		style="width: 800px; height: 500px; padding-top: 0px;"
		data-options="title:'客户选择', iconCls:'icon-save',modal:true,closed:true,buttons:'#dlg_buttons'">
		<iframe scrolling="auto" frameborder="0"
			style="width: 100%; height: 99%;"></iframe>
	</div>
	<!-- 模态框（Modal） -->
		<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		    <div class="modal-dialog">
		        <div class="modal-content">
		            <div class="modal-header">
		                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
		                <h4 class="modal-title" id="myModalLabel" style="font-weight: bold;">视频上传通知</h4>
		            </div>
		            <div class="modal-body"></div>
		            <div class="modal-footer">
		                <button type="button" class="btn btn-primary" data-dismiss="modal">确认</button>
		            </div>
		        </div><!-- /.modal-content -->
		    </div><!-- /.modal-dialog -->
		</div>
	<!-- /.modal -->
	</body>
</html>
